package cn.stylefeng.guns.modular.packreview.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.packreview.entity.PickingList;
import cn.stylefeng.guns.modular.packreview.model.params.PackReviewParam;
import cn.stylefeng.guns.modular.packreview.model.params.PickingListParam;
import cn.stylefeng.guns.modular.packreview.model.result.PickingListResult;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wp
 * @since 2025-07-26
 */
public interface PickingListService extends IService<PickingList> {

    /**
     * 新增
     *
     * @author wp
     * @Date 2025-07-26
     */
    void add(PickingListParam param);

    /**
     * 删除
     *
     * @author wp
     * @Date 2025-07-26
     */
    void delete(PickingListParam param);

    /**
     * 更新
     *
     * @author wp
     * @Date 2025-07-26
     */
    void update(PickingListParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author wp
     * @Date 2025-07-26
     */
    PickingListResult findBySpec(PickingListParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author wp
     * @Date 2025-07-26
     */
    List<PickingListResult> findListBySpec(PickingListParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author wp
     * @Date 2025-07-26
     */
     LayuiPageInfo findPageBySpec(PickingListParam param,String condition);

    ResponseData getExceldata(MultipartFile file, PickingListParam packReviewParam, ResponseData data) throws IOException;


    String findPickTypeByPickNumber(String pickNumber);
}
